#include "junix.h"
using namespace std;

class A
{
	private:
		A(){ }
		A(const A&);
		A& operator=(const A&);
	public:
		static A& instance() {
			static A a;
			return a;
		}

		void f() {
			cout<<"void f()"<<endl;
		}
};

int main(int argc, char **argv)
{
	A& n = A::instance();
	n.f();
}
